// 04jyhs/shoppingMallAdmin/shoppingMallAdmin.js
Page({
  data: {
     frame_h: 1800,
     channel_width: 120,
     channel_list:[
        {
           "Perm_Name": "发布商品",
           "Perm_Picture": "http://h5.52g3.cc/h5/ui/11.5-11.9/10.30-11.2/shangping.png",
           "wxapp_url": "/04jyhs/shoppingMallAdmin/publishGoods/publishGoods"
        },
        {
           "Perm_Name": "添加分类",
           "Perm_Picture": "http://h5.52g3.cc/h5/ui/11.5-11.9/10.30-11.2/fenglei.png",
           "wxapp_url": "/04jyhs/shoppingMallAdmin/AddClassify/AddClassify"
        },
        {
           "Perm_Name": "商城轮播",
           "Perm_Picture": "http://h5.52g3.cc/h5/ui/11.5-11.9/10.30-11.2/lunbo.png",
           "wxapp_url": "/04jyhs/shoppingMallAdmin/GoodsCarousel/GoodsCarousel"
        },
        {
           "Perm_Name": "商品列表",
           "Perm_Picture": "http://h5.52g3.cc/h5/ui/11.5-11.9/10.30-11.2/leibiao.png",
           "wxapp_url": "/04jyhs/shoppingMallAdmin/GoodsList/GoodsList"
        },
        {
           "Perm_Name": "商城订单管理",
           "Perm_Picture": "http://h5.52g3.cc/h5/ui/11.5-11.9/10.30-11.2/guangli.png",
           "wxapp_url": "/04jyhs/shoppingMallAdmin/MallOrderAdmin/MallOrderAdmin"
        }],
  },
  onLoad: function (options) {
     var sys = wx.getSystemInfoSync()
     this.setData({
        channel_width: (sys.windowWidth - 36) / 3,
        frame_h: sys.windowHeight + 10
     })
  },
  //跳转至发布商品
   toshopMall(e) {
      var id = e.currentTarget.id
      var channel = this.data.channel_list[id]
      wx.navigateTo({
         url: channel.wxapp_url
      })
   },
})